export default [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/home',
        redirect: '/home/resume'
    },
    {
        path: '/home/resume',
        redirect: '/home/resume/all'
    },
    {
        // 登陆
        path: '/login',
        component: function (resolve) {
            require(['./components/login.vue'], resolve)
        }
    },
    {
        // 
        path: '/home',
        component: function (resolve) {
            require(['./components/home.vue'], resolve)
        },
        children: [
            {
                // 招聘需求
                path: 'requirements',
                component: function (resolve) {
                    require(['./components/management-requirements/requirements.vue'], resolve)
                }
            },
            {
                // 招聘需求新增和修改操作
                path: 'opRequirements',
                component: function (resolve) {
                    require(['./components/management-requirements/opRequirements.vue'], resolve)
                }
            },
            {
                // 简历库
                path: 'resume',
                component: function (resolve) {
                    require(['./components/management-resume/resume.vue'], resolve)
                },
                children: [{
                    // 全部
                    path: 'all',
                    component: function (resolve) {
                        require(['./components/management-resume/all.vue'], resolve)
                    }
                },
                {
                    // 储备人才
                    path: 'reserve',
                    component: function (resolve) {
                        require(['./components/management-resume/reserve.vue'], resolve)
                    }
                },
                {
                    // 黑名单
                    path: 'blacklist',
                    component: function (resolve) {
                        require(['./components/management-resume/blacklist.vue'], resolve)
                    }
                },
                {
                    // 新增简历
                    path: 'addResume',
                    component: function (resolve) {
                        require(['./components/management-resume/addResume.vue'], resolve)
                    }
                },
                {
                    // 发送邀请
                    path: 'opInvitation',
                    component: function (resolve) {
                        require(['./components/management-resume/opInvitation.vue'], resolve)
                    }
                },
                {
                    // 更改标签
                    path: 'opblackType',
                    component: function (resolve) {
                        require(['./components/management-resume/opblackType.vue'], resolve)
                    }
                },
                {
                    // 简历操作
                    path: 'opResume',
                    component: function (resolve) {
                        require(['./components/management-resume/opResume.vue'], resolve)
                    }
                },
                {
                    // 简历操作
                    path: 'opResumeBlack',
                    component: function (resolve) {
                        require(['./components/management-resume/opResumeBlack.vue'], resolve)
                    }
                }
                ]
            },
            {
                // 面试管理
                path: 'interview',
                component: function (resolve) {
                    require(['./components/management-interview/interview.vue'], resolve)
                },
                children: [
                    {
                        // 待面试
                        path: 'await',
                        component: function (resolve) {
                            require(['./components/management-interview/await.vue'], resolve)
                        }
                    },
                    // 
                    {
                        // 简历操作
                        path: 'opResumeawaitRec',
                        component: function (resolve) {
                            require(['./components/management-resume/opResumeawaitRec.vue'], resolve)
                        }
                    },
                    {
                        // 简历操作
                        path: 'opResumeawait',
                        component: function (resolve) {
                            require(['./components/management-resume/opResumeawait.vue'], resolve)
                        }
                    },
                    {
                        // 简历操作
                        path: 'opResumeaentry',
                        component: function (resolve) {
                            require(['./components/management-resume/opResumeaentry.vue'], resolve)
                        }
                    },
                    // 
                    {
                        // 简历操作
                        path: 'opResumeaentryRec',
                        component: function (resolve) {
                            require(['./components/management-resume/opResumeaentryRec.vue'], resolve)
                        }
                    },
                    {
                        // 是否发offer
                        path: 'opOffer',
                        component: function (resolve) {
                            require(['./components/management-interview/opOffer.vue'], resolve)
                        }
                    },
                    {
                        // 新增简历
                        path: 'addAwait',
                        component: function (resolve) {
                            require(['./components/management-interview/addAwait.vue'], resolve)
                        }
                    },
                    {
                        // 面试反馈
                        path: 'opFeedback',
                        component: function (resolve) {
                            require(['./components/management-interview/opFeedback.vue'], resolve)
                        }
                    },
                    {
                        // 入职反馈
                        path: 'opEntry',
                        component: function (resolve) {
                            require(['./components/management-interview/opEntry.vue'], resolve)
                        }
                    },
                    {
                        // 面试中
                        path: 'underway',
                        component: function (resolve) {
                            require(['./components/management-interview/underway.vue'], resolve)
                        }
                    },
                    {
                        // 待入职
                        path: 'entry',
                        component: function (resolve) {
                            require(['./components/management-interview/entry.vue'], resolve)
                        }
                    },
                    {
                        // 面试记录
                        path: 'awaitrecord',
                        component: function (resolve) {
                            require(['./components/management-interview/awaitrecord.vue'], resolve)
                        }
                    },
                    {
                        // 入职记录
                        path: 'entryrecord',
                        component: function (resolve) {
                            require(['./components/management-interview/entryrecord.vue'], resolve)
                        }
                    }
                ]
            },
            {
                // 账号管理
                path: 'account',
                component: function (resolve) {
                    require(['./components/management-system/account.vue'], resolve)
                }
            },
            {
                // 字典管理
                path: 'dictionaries',
                component: function (resolve) {
                    require(['./components/management-system/dictionaries.vue'], resolve)
                }
            },
            {
                // 字典管理操作
                path: 'opDictionaries',
                component: function (resolve) {
                    require(['./components/management-system/opDictionaries.vue'], resolve)
                }
            },
            {
                // 账号管理操作
                path: 'opAccount',
                component: function (resolve) {
                    require(['./components/management-system/opAccount.vue'], resolve)
                }
            },
            {
                // 模板管理
                path: 'template',
                component: function (resolve) {
                    require(['./components/management-system/template.vue'], resolve)
                }
            },
            {
                // 模板操作
                path: 'opTemplate',
                component: function (resolve) {
                    require(['./components/management-system/opTemplate.vue'], resolve)
                }
            },
            {
                // 系统设置
                path: 'system',
                component: function (resolve) {
                    require(['./components/management-system/system.vue'], resolve)
                }
            }
        ]
    },
    {
        // 404
        path: '*',
        component: function (resolve) {
            require(['./components/404.vue'], resolve)
        }
    }
]

